package com.erdos.upc.core;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.erdos.upc.entity.Privilege;


public class UpcUser implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -3758688369957470157L;

	/** 登录帐号(工号) */
    private String loginId;

    /** 登录用户姓名 */
    private String name;

    /** 登录IP */
    private String loginIp;

    /** 登陆班组 */
    private String loginGroup;

    /** 登陆班别 */
    private String loginShift;

    /** 登录时间 */
    private Date loginTime;

    /**
     * 工厂号
     */
    private String facilityIds;
    /**
     * 设备编号
     */
    private String facilityNo;

    /** 登录用户权限集合 */
    private Set<Privilege> privileges = new HashSet<Privilege>();

    public String getLoginId() {
	return loginId;
    }

    public void setLoginId(String loginId) {
	this.loginId = loginId;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getLoginIp() {
	return loginIp;
    }

    public void setLoginIp(String loginIp) {
	this.loginIp = loginIp;
    }

    public Date getLoginTime() {
	return loginTime;
    }

    public void setLoginTime(Date loginTime) {
	this.loginTime = loginTime;
    }

    public Set<Privilege> getPrivileges() {
	return privileges;
    }

    public void setPrivileges(Set<Privilege> privileges) {
	this.privileges = privileges;
    }

    /**
     * @return the loginGroup
     */
    public String getLoginGroup() {
	return loginGroup;
    }

    /**
     * @param loginGroup
     *                the loginGroup to set
     */
    public void setLoginGroup(String loginGroup) {
	this.loginGroup = loginGroup;
    }

    public String getLoginShift() {
	return loginShift;
    }

    public void setLoginShift(String loginShift) {
	this.loginShift = loginShift;
    }

    /**
     * @return the facilityIds
     */
    public String getFacilityIds() {
	return facilityIds;
    }

    /**
     * @param facilityIds
     *                the facilityIds to set
     */
    public void setFacilityIds(String facilityIds) {
	this.facilityIds = facilityIds;
    }

    /**
     * @return the facilityNo
     */
    public String getFacilityNo() {
	return facilityNo;
    }

    /**
     * @param facilityNo
     *                the facilityNo to set
     */
    public void setFacilityNo(String facilityNo) {
	this.facilityNo = facilityNo;
    }

}
